package iedcyt.acute.controller;

import org.eclipse.swt.widgets.Listener;

import iedcyt.acute.controller.listeners.maesorgPublication.*;
import iedcyt.acute.model.MaesorgJCRModel;
import iedcyt.acute.model.MaesorgPublicationModel;
import iedcyt.acute.view.MaesorgJCRView;
import iedcyt.acute.view.MaesorgPublicationView;

public class MaesorgJCRController {

	private MaesorgJCRView _view;
	private MaesorgJCRModel _model;
	
	public MaesorgJCRController(MaesorgJCRView view){
		_view = view;
		_model = new MaesorgJCRModel();
	}
	
	public void iniView() {
		_view.loadDboFi(_model.getDbo_pubs());
	}

	public Listener getDboCandidateKeyDownListener() {
		return new DboCandidateKeyDownListener(_view, _model);
	}
	
	public Listener getDboKeyDownListener() {
		return new DboKeyDownListener(_view, _model);
	}
	public Listener getPublicationSelectionListener() {
		return new DboSelectionListener(_view, _model);
	}

	public Listener getDboCandidateSelectionListener() {
		return new DboCandidateSelectionListener(_view,_model);
	}

	public Listener getCandidateDobleClickListener() {
		return new DboCandidateDobleClickListener(_view,_model);
	}

	public Listener getDboDobleClickListener() {
		return new DboDobleClickListener(_view,_model);
	}

	
	
	/*public Listener getCandidatesKeyDownListener() {
		return new CandidatesKeyDownListener(_view, _model);
	}
	
	public Listener getPubsJsssKeyDownListener() {
		return new PubsJsssKeyDownListener(_view, _model);
	}
	
	public Listener getCandidatesSelectionListener() {
		return new CandidatesSelectionListener(_view, _model);
	}
	
	public Listener getPublicationKeyDownListener() {
		return new PublicationKeyDownListener(_view, _model);
	}*/
	
	
}
